#pragma once

#include <luabind/luabind.hpp>
#include <luabind/operator.hpp>
#include <MyGUI.h>
#include "LuaLink_Trace.h"

using namespace luabind;

class LuaLink_Widget_Delegate
{
protected:
	luabind::object luaFunction;

public:
	LuaLink_Widget_Delegate(luabind::object function);
	virtual ~LuaLink_Widget_Delegate(void);
	void executeEvent(MyGUI::WidgetPtr _widget);
	void executeEventWidget(MyGUI::WidgetPtr _widget);
};
